<?php

class Control_Model_Form_SubPageContent extends Zend_Form
{
    public function __construct($options = null)
    {
        parent::__construct($options);
        $this->setName('About');

        $id = new Zend_Form_Element_Hidden('id');
        $id->addFilter('Int');

        $id_page = new Zend_Form_Element_Hidden('id_page');
        $id->addFilter('Int');

        $content = new Zend_Form_Element_Textarea('content');
        $content->setLabel('Case study:')
            ->setRequired(true)
            ->addValidator('NotEmpty')
            ->setAttrib('class', 'elrte');;

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');

        $this->addElements(array($id, $id_page, $content, $submit));
    }
}